package org.ediba.siri.core.request.domain;

// Generated 26/03/2011 19:59:18 by Hibernate Tools 3.4.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.ediba.siri.core.image.domain.Image;
import org.ediba.siri.core.model.domain.ModelVisit;
import org.ediba.siri.core.publication.domain.Publication;
import org.ediba.siri.core.publication.domain.PublicationNumber;
import org.ediba.siri.core.user.domain.User;

/**
 * Request generated by hbm2java
 */
public class Request implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
	public static final boolean PHOTO = true;
	public static final boolean DRAW = false;
	private Integer id;
	
	private PublicationNumber publicationnumber;
	private Publication publication;
	private User user;
	
	private Integer number;
	private String numberStr;//para la busqueda por numero
	private String description;
	private Date timestamp;
	private boolean pending;
	private Date deliveryDate;
	private String environment;
	private Boolean orientation;
	private String objects;
	private Integer count;
	private String storyboard;
	private boolean type;
	private String backgroundColor;
	
	private Set<RequestUsage> requestusages = new HashSet<RequestUsage>(0);
	private Set<RequestTake> requesttakes = new HashSet<RequestTake>(0);
	private Set<RequestAngle> requestangles = new HashSet<RequestAngle>(0);
	private Set<RequestModel> requestmodels = new HashSet<RequestModel>(0);
	private Set<ModelVisit> modelvisits = new HashSet<ModelVisit>(0);
	private Set<RequestAttachment> requestattachments = new HashSet<RequestAttachment>(0);
	private Set<Image> images = new HashSet<Image>(0);
	private Set<Image> images_1 = new HashSet<Image>(0);

	public Request() {
	}

	public Request(User user, boolean pending, Date timestamp) {
		this.user = user;
		this.pending = pending;
		this.timestamp = timestamp;
	}

	public Request(PublicationNumber publicationnumber,
			Publication publication, User user, Integer number,
			boolean pending, Date timestamp,
			String description, Set<RequestUsage> requestusages,
			Set<RequestTake> requesttakes, Set<RequestAngle> requestangles,
			Set<Image> images, Set<RequestModel> requestmodels,
			Set<RequestAttachment> requestattachments, Set<Image> images_1,
			Set<ModelVisit> modelvisits) {
		this.publicationnumber = publicationnumber;
		this.publication = publication;
		this.user = user;
		this.number = number;
		this.description = description;
		this.pending = pending;
		this.timestamp = timestamp;
		this.requestusages = requestusages;
		this.requesttakes = requesttakes;
		this.requestangles = requestangles;
		this.images = images;
		this.requestmodels = requestmodels;
		this.requestattachments = requestattachments;
		this.images_1 = images_1;
		this.modelvisits = modelvisits;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public PublicationNumber getPublicationnumber() {
		return this.publicationnumber;
	}

	public void setPublicationnumber(PublicationNumber publicationnumber) {
		this.publicationnumber = publicationnumber;
	}

	public Publication getPublication() {
		return this.publication;
	}

	public void setPublication(Publication publication) {
		this.publication = publication;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Integer getNumber() {
		return this.number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	@JsonIgnore
	public Set<RequestUsage> getRequestusages() {
		return this.requestusages;
	}

	public void setRequestusages(Set<RequestUsage> requestusages) {
		this.requestusages = requestusages;
	}
	@JsonIgnore
	public Set<RequestTake> getRequesttakes() {
		return this.requesttakes;
	}

	public void setRequesttakes(Set<RequestTake> requesttakes) {
		this.requesttakes = requesttakes;
	}
	@JsonIgnore
	public Set<RequestAngle> getRequestangles() {
		return this.requestangles;
	}

	public void setRequestangles(Set<RequestAngle> requestangles) {
		this.requestangles = requestangles;
	}
	@JsonIgnore
	public Set<Image> getImages() {
		return this.images;
	}

	public void setImages(Set<Image> images) {
		this.images = images;
	}
	@JsonIgnore
	public Set<RequestModel> getRequestmodels() {
		return this.requestmodels;
	}

	public void setRequestmodels(Set<RequestModel> requestmodels) {
		this.requestmodels = requestmodels;
	}
	@JsonIgnore
	public Set<RequestAttachment> getRequestattachments() {
		return this.requestattachments;
	}

	public void setRequestattachments(Set<RequestAttachment> requestattachments) {
		this.requestattachments = requestattachments;
	}
	@JsonIgnore
	public Set<Image> getImages_1() {
		return this.images_1;
	}

	public void setImages_1(Set<Image> images_1) {
		this.images_1 = images_1;
	}
	
	@JsonIgnore
	public Set<ModelVisit> getModelvisits() {return modelvisits;}
	public void setModelvisits(Set<ModelVisit> modelvisits) {this.modelvisits = modelvisits;}

	public Date getTimestamp() {
		return this.timestamp;
	}
	
	public void setTimestamp(Date timestamp) {
		this.timestamp = timestamp;
	}

	public boolean isPending() {
		return this.pending;
	}

	public void setPending(boolean pending) {
		this.pending = pending;
	}

	public void setDeliveryDate(Date deliveryDate) {
		this.deliveryDate = deliveryDate;
	}

	public Date getDeliveryDate() {
		return deliveryDate;
	}

	public void setEnvironment(String environment) {
		this.environment = environment;
	}

	public String getEnvironment() {
		return environment;
	}

	public void setOrientation(Boolean orientation) {
		this.orientation = orientation;
	}

	public Boolean getOrientation() {
		return orientation;
	}

	public void setObjects(String objects) {
		this.objects = objects;
	}

	public String getObjects() {
		return objects;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Integer getCount() {
		return count;
	}

	public void setStoryboard(String storyboard) {
		this.storyboard = storyboard;
	}

	public String getStoryboard() {
		return storyboard;
	}

	public void setNumberStr(String numberStr) {
		this.numberStr = numberStr;
	}

	public String getNumberStr() {
		return numberStr;
	}

	public void setType(boolean type) {
		this.type = type;
	}

	public boolean isType() {
		return type;
	}

	public void setBackgroundColor(String backgroundColor) {
		this.backgroundColor = backgroundColor;
	}

	public String getBackgroundColor() {
		return backgroundColor;
	}

}
